﻿using Authentication.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Model.Interface
{ 
    public interface IRoleProvider
    {
        IEnumerable<ApplicationRule> SearchRules(out int totalRecord, Guid applicationKey, string name = null, bool? active = null, int pagesize = 0, int pageindex = 0, bool isOutTotal = true);

        int Add(ApplicationRule role);

        bool Update(ApplicationRule role);

        bool Delete(Guid applicationKey, int roleId);
    }
}
